			
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using DDF.Entity;
using System.Runtime.Serialization;
using ARR.Entities.Gateways;
		
namespace ARR.Entities
{
	[DataContract]
	[Serializable]	
	public partial class Article : EntityBase
	{
		[DataMember]
		private ArticleRow row;
		
		public Article(ArticleRow row)
		{
			this.row = row;
		}
		
		public Article()
		{
			this.row = new ArticleRow();
		}
		
		[DataMember]
		public int Id
		{
			get { return row.Id; }
			set { row.Id = value; }
		}

		[DataMember]
		public int RangeReviewId
		{
			get { return row.RangeReviewId; }
			set { row.RangeReviewId = value; }
		}

		[DataMember]
		public int CategoryId
		{
			get { return row.CategoryId; }
			set { row.CategoryId = value; }
		}

		[DataMember]
		public string Code
		{
			get { return row.Code; }
			set { row.Code = value; }
		}

		[DataMember]
		public string Name
		{
			get { return row.Name; }
			set { row.Name = value; }
		}

		[DataMember]
		public string EAN
		{
			get { return row.EAN; }
			set { row.EAN = value; }
		}

		[DataMember]
		public string UOM
		{
			get { return row.UOM; }
			set { row.UOM = value; }
		}

		[DataMember]
		public string Brand
		{
			get { return row.Brand; }
			set { row.Brand = value; }
		}

		[DataMember]
		public string Manufacturer
		{
			get { return row.Manufacturer; }
			set { row.Manufacturer = value; }
		}

		[DataMember]
		public bool Delist
		{
			get { return row.Delist; }
			set { row.Delist = value; }
		}

		[DataMember]
		public bool IsDelisted
		{
			get { return row.IsDelisted; }
			set { row.IsDelisted = value; }
		}

		[DataMember]
		public bool IsDeletedRangeReview
		{
			get { return row.IsDeletedRangeReview; }
			set { row.IsDeletedRangeReview = value; }
		}

		[DataMember]
		public bool IsDeletedPerformance
		{
			get { return row.IsDeletedPerformance; }
			set { row.IsDeletedPerformance = value; }
		}

		[DataMember]
		public bool IsNew
		{
			get { return row.IsNew; }
			set { row.IsNew = value; }
		}

		[DataMember]
		public string Comments
		{
			get { return row.Comments; }
			set { row.Comments = value; }
		}

		[DataMember]
		public int? CommentId
		{
			get { return row.CommentId; }
			set { row.CommentId = value; }
		}

		[DataMember]
		public decimal? Size
		{
			get { return row.Size; }
			set { row.Size = value; }
		}

		[DataMember]
		public decimal? Width
		{
			get { return row.Width; }
			set { row.Width = value; }
		}

		[DataMember]
		public decimal? Height
		{
			get { return row.Height; }
			set { row.Height = value; }
		}

		[DataMember]
		public decimal? Facings
		{
			get { return row.Facings; }
			set { row.Facings = value; }
		}

		[DataMember]
		public string Attribute1
		{
			get { return row.Attribute1; }
			set { row.Attribute1 = value; }
		}

		[DataMember]
		public string Attribute2
		{
			get { return row.Attribute2; }
			set { row.Attribute2 = value; }
		}

		[DataMember]
		public string Attribute3
		{
			get { return row.Attribute3; }
			set { row.Attribute3 = value; }
		}

		[DataMember]
		public string Attribute4
		{
			get { return row.Attribute4; }
			set { row.Attribute4 = value; }
		}

		[DataMember]
		public string Attribute5
		{
			get { return row.Attribute5; }
			set { row.Attribute5 = value; }
		}

		[DataMember]
		public decimal? SplitPercentage
		{
			get { return row.SplitPercentage; }
			set { row.SplitPercentage = value; }
		}

		[DataMember]
		public decimal? MarginSplitPercentage
		{
			get { return row.MarginSplitPercentage; }
			set { row.MarginSplitPercentage = value; }
		}

		[DataMember]
		public int? UnitOfMeasureConvertionId
		{
			get { return row.UnitOfMeasureConvertionId; }
			set { row.UnitOfMeasureConvertionId = value; }
		}

		[DataMember]
		public decimal TaxRate
		{
			get { return row.TaxRate; }
			set { row.TaxRate = value; }
		}

		[DataMember]
		public string Type
		{
			get { return row.Type; }
			set { row.Type = value; }
		}

		[DataMember]
		public string OrderUOM
		{
			get { return row.OrderUOM; }
			set { row.OrderUOM = value; }
		}

		[DataMember]
		public string OrderEAN
		{
			get { return row.OrderEAN; }
			set { row.OrderEAN = value; }
		}

		[DataMember]
		public string Pack
		{
			get { return row.Pack; }
			set { row.Pack = value; }
		}

		[DataMember]
		public string Vendor
		{
			get { return row.Vendor; }
			set { row.Vendor = value; }
		}

		[DataMember]
		public decimal? Price
		{
			get { return row.Price; }
			set { row.Price = value; }
		}

		[DataMember]
		public decimal? Cost
		{
			get { return row.Cost; }
			set { row.Cost = value; }
		}

		[DataMember]
		public decimal? NetPrice
		{
			get { return row.NetPrice; }
			set { row.NetPrice = value; }
		}

		[DataMember]
		public DateTime? CreatedDate
		{
			get { return row.CreatedDate; }
			set { row.CreatedDate = value; }
		}

		[DataMember]
		public string Source
		{
			get { return row.Source; }
			set { row.Source = value; }
		}

		
		public ArticleRow GetRow()
        {
            return row;
        }
		
	} 
} 
